package com.example.cf.grouplist.utils;

import java.util.ArrayList;

/**
 * Created by cf on 2016/8/15.
 */

public class Exception1 {
    public static void main(String[] arg) {
        ArrayList list = new ArrayList();

        while (true) {
            list.add(new Person("aa",11));
            System.out.print(list.toString());
        }
    }

    public static class Person {
        String name;
        int age;

        public Person(String name, int age) {
            this.name = name;
            this.age = age;
        }
    }
}
